<?php
#config variables
$host =         ''; #your database host
$user =         ''; #your database username
$password =     ''; #your database password
$database =     ''; #your database title
$page_title =   ''; #this appears at the top of the webpage and in the browser tab/window.
$tbl_prefix =	''; #the prefix on your database tables. 
$installed = 	false; #set to true to not be redirected to the installation page.

##Don't edit if you don't know what you're doing.##
if($installed == false) {
	header('Location: install/index.php');
}
else {

#connect to db
$consult_err = ' Consult <a href="lib/sqlerrors.html">lib/sqlerrors.html</a>';
$connect = @mysql_connect($host, $user, $password) 
				or die('Errno(1) - Invalid connection details.' . $consult_err); 
           @mysql_select_db($database, $connect) 
           		or die('Errno(2) - Couldn\'t connect to database.' . $consult_err);  #select database
}
?>